.brasao-frente-grande {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 0;
    font-size: 44px;
}
.brasao-frente-grande svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.15));
    transition: 0.3s;
}
.brasao-frente-grande:hover {
    transform: scale(1.08);
}
.brasao-frente-grande:hover svg {
    filter: drop-shadow(0 0 30px currentColor);
}

.insignia-capitulo-grande {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.3s;
    line-height: 0;
    font-size: 32px;
}
.insignia-capitulo-grande svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.1));
    transition: 0.3s;
}
.insignia-capitulo-grande:hover {
    transform: scale(1.08);
}
.insignia-capitulo-grande:hover svg {
    filter: drop-shadow(0 0 25px currentColor);
}

.patente-badge-frente {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 6px 12px 6px 12px;
    background: #0d0d1a;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    white-space: nowrap;
}
.patente-badge-frente:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.patente-badge-capitulo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 14px;
    border-radius: 20px;
    background: #0d0d1a;
    border: 1px solid #333;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    transition: 0.3s;
    white-space: nowrap;
}
.patente-badge-capitulo:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.patente-badge-frente.comandante,
.patente-badge-capitulo.comandante {
    animation: glowShift 2.5s ease-in-out infinite;
}
@keyframes glowShift {
    0% { box-shadow: 0 0 8px rgba(255,215,0,0.2); border-color: #ffd700; }
    50% { box-shadow: 0 0 28px rgba(255,215,0,0.6); border-color: #ffd700; }
    100% { box-shadow: 0 0 8px rgba(255,215,0,0.2); border-color: #ffd700; }
}

.linha-frente.linha-comandante td:first-child {
    border-left: 4px solid #ffd700;
    padding-left: 14px;
}
.linha-frente.linha-comandante {
    background: rgba(255,215,0,0.04);
}
.linha-capitulo.comandante-row td:first-child {
    border-left: 3px solid #ffd700;
    padding-left: 14px;
}
.linha-capitulo.comandante-row {
    background: rgba(255,215,0,0.03);
}

@keyframes modalFadeIn {
    0% { opacity: 0; backdrop-filter: blur(0px); }
    100% { opacity: 1; backdrop-filter: blur(8px); }
}
@keyframes svgPulse {
    0% { filter: drop-shadow(0 0 20px currentColor); transform: scale(1); }
    100% { filter: drop-shadow(0 0 60px currentColor); transform: scale(1.05); }
}
@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
    50% { transform: rotate(180deg) scale(1.4); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}

@media (max-width: 900px) {
    .brasao-frente-grande svg { width: 48px; height: 48px; }
    .insignia-capitulo-grande svg { width: 36px; height: 36px; }
    .patente-badge-frente { font-size: 13px; padding: 4px 14px; }
    .patente-badge-capitulo { font-size: 11px; padding: 2px 10px; }
}
@media (max-width: 600px) {
    .brasao-frente-grande { margin-left: 6px; font-size: 30px; }
    .brasao-frente-grande svg { width: 36px; height: 36px; }
    .insignia-capitulo-grande { margin-left: 6px; font-size: 24px; }
    .insignia-capitulo-grande svg { width: 28px; height: 28px; }
    .patente-badge-frente { font-size: 11px; padding: 3px 10px; }
    .patente-badge-capitulo { font-size: 10px; padding: 2px 8px; }
}

/* ============================================================
   MODAL PATENTE – VERSÃO QUADRADA
   ============================================================ */

/* OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* CONTAINER PRINCIPAL – QUADRADO */
.modal-container.modal-quadrado {
    background: #0d0d1a;
    border: 2px solid #00ffcc44;
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    padding: 30px 35px 25px 35px;
    box-shadow: 0 0 60px rgba(0, 255, 204, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FECHAR */
.modal-fechar {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.modal-fechar:hover {
    transform: scale(1.2);
    color: #ff6666;
}

/* HEADER: SVG + TÍTULO */
.modal-header-conquista {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 16px;
}
.modal-svg-pequeno {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 12px;
    border: 2px solid #1a1a2e;
    padding: 8px;
    background: #0a0a14;
}
.modal-svg-pequeno:hover {
    transform: scale(1.05);
    border-color: #00ffcc44;
    box-shadow: 0 0 20px rgba(0,255,204,0.2);
}
.modal-svg-pequeno svg {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-titulo-conquista {
    flex: 1;
}
.modal-titulo-conquista h2 {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 4px 0;
    text-shadow: 0 0 20px rgba(0,255,204,0.2);
}
.modal-subtitulo {
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
}

/* DADOS TÉCNICOS */
.modal-dados-tecnicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    background: #0a0a14;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #1a1a2e;
}
.modal-dados-tecnicos div {
    font-size: 16px;
    color: #ccc;
}
.modal-dados-tecnicos strong {
    color: #00ffcc;
    font-weight: 600;
}

/* LORE */
.modal-lore {
    background: #0a0a14;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid #00ffcc44;
}

/* PERFORMANCE */
.modal-performance {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.perf-item {
    background: #0a0a14;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #1a1a2e;
    text-align: center;
}
.perf-item.full {
    grid-column: 1 / -1;
}
.perf-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}
.perf-valor {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-top: 2px;
}

/* FRASE FINAL */
.modal-frase-final {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #00ffcc44;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    background: #0a0a14;
    margin-bottom: 12px;
    text-shadow: 0 0 20px currentColor;
}

/* DATA */
.modal-data {
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #1a1a2e;
    padding-top: 12px;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes modalFadeIn {
    0% { opacity: 0; transform: scale(0.92) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes modalFadeOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.95) translateY(10px); }
}
.modal-entrar {
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.modal-sair {
    animation: modalFadeOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   MODAL SVG AMPLIADO
   ============================================================ */
.modal-svg-overlay {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100000;
}
.modal-svg-container {
    background: transparent;
    max-width: 700px;
    width: 90%;
    padding: 30px;
    text-align: center;
    position: relative;
}
.modal-svg-container .modal-fechar-svg {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.modal-svg-container .modal-fechar-svg:hover {
    transform: scale(1.1);
    background: #ff6666;
}
.modal-svg-container svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 60px currentColor);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 600px) {
    .modal-container.modal-quadrado {
        padding: 20px;
        max-width: 100%;
    }
    .modal-header-conquista {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .modal-svg-pequeno {
        width: 70px;
        height: 70px;
        font-size: 60px;
    }
    .modal-titulo-conquista h2 {
        font-size: 20px;
    }
    .modal-dados-tecnicos {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .modal-performance {
        grid-template-columns: 1fr 1fr;
    }
    .modal-frase-final {
        font-size: 16px;
        padding: 12px;
    }
    .modal-svg-container svg {
        max-width: 250px;
    }
}


/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-container.modal-quadrado {
    background: #0d0d1a;
    border: 2px solid #00ffcc44;
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    padding: 30px 35px 25px 35px;
    box-shadow: 0 0 60px rgba(0,255,204,0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-fechar {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}
.modal-header-conquista {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a2e;
    padding-bottom: 16px;
}
.modal-svg-pequeno {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    line-height: 1;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid #1a1a2e;
    padding: 8px;
    background: #0a0a14;
}
.modal-svg-pequeno:hover {
    border-color: #00ffcc44;
}
.modal-svg-pequeno svg {
    width: 100%;
    height: 100%;
    display: block;
}
.modal-titulo-conquista h2 {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 4px 0;
}
.modal-subtitulo {
    font-size: 14px;
    color: #888;
    letter-spacing: 1px;
}
.modal-dados-tecnicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    background: #0a0a14;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #1a1a2e;
}
.modal-dados-tecnicos div {
    font-size: 16px;
    color: #ccc;
}
.modal-dados-tecnicos strong {
    color: #00ffcc;
}
.modal-lore {
    background: #0a0a14;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid #00ffcc44;
}
.modal-performance {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.perf-item {
    background: #0a0a14;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #1a1a2e;
    text-align: center;
}
.perf-item.full {
    grid-column: 1 / -1;
}
.perf-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
}
.perf-valor {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}
.modal-frase-final {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #00ffcc44;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    background: #0a0a14;
    margin-bottom: 12px;
}
.modal-data {
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #1a1a2e;
    padding-top: 12px;
}
.brasao-frente-pequeno svg,
.insignia-capitulo-pequeno svg {
    width: 28px;
    height: 28px;
    display: block;
}
.brasao-frente-pequeno:hover,
.insignia-capitulo-pequeno:hover {
    transform: scale(1.1);
}
.subfrentes.hidden {
    display: none;
}

.brasao-frente-pequeno svg,
.insignia-capitulo-pequeno svg {
    width: 28px;
    height: 28px;
    display: block;
}
.brasao-frente-pequeno:hover,
.insignia-capitulo-pequeno:hover {
    transform: scale(1.1);
    cursor: pointer;
}